package mycrypto

import (
	"encoding/hex"

	"github.com/Hyperledger-TWGC/ccs-gm/sm3"
)

func GetSM3HashCode(message []byte) string {
	hash := sm3.New()
	hash.Write(message)
	bytes := hash.Sum(nil)
	hashCode := hex.EncodeToString(bytes)
	return hashCode
}
